package service

type CreateUserRequest struct {
	Username string `json:"username" binding:"required,alphanum,min=4,max=16"`
	Nickname string `json:"nickname" binding:"required,min=4,max=16"`
	Password string `json:"password" binding:"required,min=6,max=24"`
}

func (svc *Service) CreateUser(params *CreateUserRequest) error {
	return svc.dao.CreateUser(params.Username, params.Nickname, params.Password)
}
